package top.icecola.community.dao;

import java.util.List;
import org.apache.ibatis.annotations.Param;
import top.icecola.community.domain.DiscussPost;
import top.icecola.community.domain.DiscussPostExample;

public interface DiscussPostMapper {
    long countByExample(DiscussPostExample example);

    int deleteByExample(DiscussPostExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(DiscussPost record);

    int insertSelective(DiscussPost record);

    List<DiscussPost> selectByExample(DiscussPostExample example);

    DiscussPost selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") DiscussPost record, @Param("example") DiscussPostExample example);

    int updateByExample(@Param("record") DiscussPost record, @Param("example") DiscussPostExample example);

    int updateByPrimaryKeySelective(DiscussPost record);

    int updateByPrimaryKey(DiscussPost record);
}